
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0" id="orgInfo" cellspacing="1">
	<tr><td colspan="6" class="t_bar">&nbsp;单位基本信息</td></tr>
	<tr>
		<td width="120px" nowrap align="right">单位名称：</td>
		<td colspan='5'>
		    <input type="hidden" name="organizations/organization[0]@submit_org" value="1" > 
			<input type="hidden" name="organizations/organization[0]@sequence_no" value="1" >
			<input type="hidden" name="organizations/organization[0]/org_code" 
							value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" >
			<span name="organizations/organization[0]/cname">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_name"/>
			</span>&nbsp;
		</td>
    </tr>
    <tr>
		<td align="right">法人代码：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/org_no">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_no"/>
			</span>&nbsp;
		</td>
		<td width="120px" nowrap align="right">营业执照注册号：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/org_licence">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_licence"/>
			</span>&nbsp;
	    </td>
	    <td width="120px" nowrap align="right">生产、办公面积：</td>
		<td width="200px">
			<input type="hidden" id="office_product" value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/office_product"/>">
			<input type="hidden" id="office_develope" value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/office_develope"/>">
		    <span name="org/office" id="org_office"></span>&nbsp;平方米
	    </td>
    </tr>
    <tr>
		<td align="right">注册类型：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/nature_name">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/nature_name"/>
			</span>&nbsp;
		</td>
		<td width="120px"  align="right">国税登记证号：</td>
		<td width="300px">
		    <span name="organizations/organization[0]/tax_internal_no">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/tax_internal_no"/>
			</span>&nbsp;
	    </td>
	    <td width="150px"  align="right">地税登记证号：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/tax_local_no">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/tax_local_no"/>
			</span>&nbsp;
	    </td>
    </tr>
   
    <tr>
        <td width="" nowrap align="right">通讯地址：</td>
		<td colspan='3'>
			<span name="organizations/organization[0]/address">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/address"/>
			</span>&nbsp;
		</td>
		 <td width="" nowrap align="right"><span class="color_red">*</span>申报日期：</td>
		 <td nowrap >
		    <c:set var="submit_date">
			    <x:out select="$xmlData/data/proposal/submit_date" />
			</c:set> 
			<cpt:date id="submit_date" name="proposal/submit_date"
				value="${submit_date}"  className="required date"
				label="申报日期"></cpt:date>&nbsp;
		</td>	
    </tr>
    <tr>
        <td width="" nowrap align="right">单位网址：</td>
		<td colspan='5'>
			<span name="organizations/organization[0]/http">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/http"/>
			</span>&nbsp;
		</td>
    </tr>
    <tr>
		<td  nowrap  align="right">公司员工人数：</td>
		<td >
		    <span
			name="organizations/organization[0]/people_count_total"> <x:out
					select="$xmlData/data/organization_persons/people_count_total" />
		</span>人&nbsp;
		</td>
		<td nowrap align="right">其中：大专以上人员数：</td>
		<td>
		    <span name="organizations/organization[0]/degree_total" id="degree_total"><x:out select="$xmlData/data/organizations/organization[@submit_org=1]/degree_total" /></span>人
		    <input type="hidden" id='degree_college' value="<x:out select='$xmlData/data/organization_persons/degree_college' />">
		    <input type="hidden" id='degree_bachelor' value="<x:out select='$xmlData/data/organization_persons/degree_bachelor' />">
		    <input type="hidden" id='degree_master' value="<x:out select='$xmlData/data/organization_persons/degree_master' />">
		    <input type="hidden" id='degree_doctor' value="<x:out select='$xmlData/data/organization_persons/degree_doctor' />">
		    <script type="text/javascript">
	           $(function() {
		             var degree_college=$("#degree_college").val();
		             var degree_bachelor=$("#degree_bachelor").val();
		             var degree_master=$("#degree_master").val();
		             var degree_doctor=$("#degree_doctor").val();
		             var count=parseInt(degree_college)+parseInt(degree_bachelor)+parseInt(degree_master)+parseInt(degree_doctor);
		             $("#degree_total").text(count);
	           });
            </script>
	    </td>
	    <td nowrap align="right">其中：研发人员数：</td>
		<td>
		    <span
			name="organizations/organization[0]/work_yanfa"> <x:out
					select="$xmlData/data/organization_persons/work_yanfa" />
		</span>人&nbsp;
	    </td>
    </tr>
    
    <tr>
        <td align="right">单位法定代表人：</td>
		<td>
			<input type="hidden"
			  name="organization_persons/organization_person[00]@psn_type" value="faren">
			<span name="organization_persons/organization_person[00]/cname">
				<x:out select="$xmlData/data/organization_persons/person[@type='faren']/cname"/>
			</span>
			
		</td>
		<td align="right">
		<input type="hidden" name="organization_persons/organization_person[00]/id_type_name" value="<x:out select="$xmlData/data/organization_persons/person[@type='faren']/id_type_name"/>"/>
		<x:out select="$xmlData/data/organization_persons/person[@type='faren']/id_type_name"/>：</td>
		<td>
			<span name="organization_persons/organization_person[00]/id_no">
				<x:out select="$xmlData/data/organization_persons/person[@type='faren']/id_no"/> 
			</span>
		</td>
		<td align="right">手机：</td>
		<td>
			<span name="organization_persons/organization_person[00]/mobile">
				<x:out select="$xmlData/data/organization_persons/person[@type='faren']/mobile"/>
			</span>
		</td>
    </tr>
    <tr>
        <td align="right">单位负责人：</td>
		<td>
			<span name="organization_persons/organization_person[01]/cname">
				<x:out
					select="$xmlData/data/organization_persons/person[@type='fuzeren']/cname" />
			</span>
			<input type="hidden"
				  name="organization_persons/organization_person[01]@psn_type" value="fuzeren">
		</td>
		<td align="right">
			<input type="hidden" name="organization_persons/organization_person[01]/id_type_name" value="<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/id_type_name"/>"/>
			<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/id_type_name"/>：</td>
		<td>
			<span name="organization_persons/organization_person[01]/id_no">
				<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/id_no"/>
			</span>
		</td>
		<td align="right">手机：</td>
		<td>
			<span name="organization_persons/organization_person[01]/mobile">
				<x:out select="$xmlData/data/organization_persons/person[@type='fuzeren']/mobile"/>
			</span>
		</td>
    </tr>
    <tr>
        <td align="right">单位联系人：</td>
		<td>
			<span name="organization_persons/organization_person[02]/cname">
				 <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_name"/>
			</span>&nbsp;
			<input type="hidden"
				  name="organization_persons/organization_person[02]@psn_type" value="lianxiren">
		</td>
		<td align="right">联系电话：</td>
		<td>
			<span name="organization_persons/organization_person[02]/tel">
				 <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_tel"/>
			</span>&nbsp;
		</td>
		<td align="right">手机：</td>
		<td>
			<span name="organization_persons/organization_person[02]/mobile">
				 <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_mobile"/>
			</span>&nbsp;
		</td>
    </tr>
    <tr>
        <td align="right">电子邮箱：</td>
		<td colspan="5">
			<span name="organization_persons/organization_person[02]/email">
				 <x:out select="$xmlData/data/organization_persons/organization_person[@psn_type='lianxiren']/contact_email"/>
			</span>&nbsp;
		</td>
		
    </tr>
    <tr>
		<td align="right">开户银行：</td>
		<td >
		    <span name="organizations/organization[0]/bank_orgname">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/bank_orgname"/>
			</span>&nbsp;
		</td>
		<td align="right">银行账号：</td>
		<td >
		    <span name="organizations/organization[0]/bank_account">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/bank_account"/>
			</span>&nbsp;
	    </td>
	    <td align="right">信用等级：</td>
		<td >
		    <span name="organizations/organization[0]/bank_credit">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/bank_credit"/>
			</span>&nbsp;
	    </td>
    </tr>
    <tr>
		<td  align="right">注册时间：</td>
		<td >
		    <span name="organizations/organization[0]/registe_date">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_date"/>
			</span>&nbsp;
		</td>
		<td align="right">注册资金：</td>
		<td >
		    <span name="organizations/organization[0]/registe_fund">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund"/>万<x:out
					select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_money_name" />
			</span>&nbsp;
	    </td>
	    <td  align="right">其中外资比例(%)：</td>
		<td >
		    <span name="organizations/organization[0]/registe_fund_foreign_rate">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_foreign_rate"/>
			</span>&nbsp;
	    </td>
    </tr>
    <tr>
        <td align="right">经营范围：</td>
		<td colspan='5'>
			<span name="organizations/organization[0]/opt_scope">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/opt_scope"/>
			</span>&nbsp;
		</td>
    </tr>
    <tr>
        <td align="right"><span class="color_red">*</span>单位特性：</td>
        <td nowrap colspan="5" valign="middle"><label> <input
				type="checkbox" class="do " id="advant_01"
				style="vertical-align: middle;" name="domain" label="国家高新技术企业"
				value="01" /><span style="vertical-align: middle;">国家高新技术企业</span>
		</label> <label> <input type="checkbox" class="do " id="domain_02"
				style="vertical-align: middle;" name="domain" label="深圳市高新技术企业"
				value="02" /><span style="vertical-align: middle;">深圳市高新技术企业</span>
		</label> <label> <input type="checkbox" class="do " id="domain_03"
				style="vertical-align: middle;" name="domain" label="其他科技型企业"
				value="03" /><span style="vertical-align: middle;">其他科技型企业</span>
		</label> <label> <input type="checkbox" class="do " id="domain_04"
				style="vertical-align: middle;" name="domain" label="高校、科研机构"
				value="04" /><span style="vertical-align: middle;">高校、科研机构</span>
		</label> <label> <input type="checkbox" class="do " id="domain_05"
				style="vertical-align: middle;" name="domain" label="其他"
				value="05" /><span style="vertical-align: middle;">其他</span>
		</label> 
		<input type="hidden" name="proposal/basic/domain_value"
			id="domain_value" class="required"
			value="<x:out select="$xmlData/data/proposal/basic/domain_value" />"
			label="单位特性" /> <input type="hidden"
			name="proposal/basic/domain_name" id="domain_name"
			value="<x:out select="$xmlData/data/proposal/basic/domain_name" />"
			label="单位特性" /></td>
		
    </tr>
 	 <tr>
		<td align="right" nowrap><span class="color_red">*</span>近两年银行贷款总额：</td>
		<td nowrap>
		<input name="proposal/loan_ceiling" id="loan_ceiling" label="近两年银行贷款总额" class="input_css required"
		onfocus="InitInput.setNumber(this,7,4,2)" style="text-align:right;" onchange="repayClean(this.id,'repay','colorRed');" value="<x:out select="$xmlData/data/proposal/loan_ceiling" />"/>&nbsp;万元
		</td>
		<td align="right"><span class="color_red">*</span>余额：</td> 
		<td nowrap>
		    <input name="proposal/balance" label="余额" maxlength="50" class="input_css required"
		onfocus="InitInput.setNumber(this,7,4,2)" style="text-align:right;" value="<x:out select="$xmlData/data/proposal/balance" />"/>&nbsp;万元
	    </td>
	    <td align="right"><span class="color_red" id="colorRed">*</span>到期偿还情况：</td>
		<td >
		   <c:set var="repay_value"><x:out select="$xmlData/data/proposal/repay_value" /></c:set> 
		     <input name="proposal/repay_value" id="repay_value" type="hidden" 
		            value="<x:out select="$xmlData/data/proposal/repay_value" />"
		            class="required " label="到期偿还情况" /> 
		     <input name="proposal/repay_name"  id="repay_name" type="hidden"
		            value="<x:out select="$xmlData/data/proposal/repay_name" />" />
		     <cpt:select id="repay" key="repay"  onChange="initControlValue('repay')" value="${repay_value}">
		     </cpt:select>
	    </td>
    </tr>
</table>
<br>
<div class="t_bar">
	主要股东
</div>
	<table border="0" cellspacing="0" cellpadding="0" class="table01" >
		<thead>
			<tr>
				<th align="center" width="40%"  nowrap>主要股东名称</th>
				<th width="20%" align="center">股东出资额(万元)</th>
				<th width="20%">出资形式</th>
				<th width="20%">所占股份比例（%）</th>
				
			</tr>
		</thead>
		<tbody id="tab">
			<c:set value="0" var="index" scope="page" />
			<x:forEach select="$xmlData/data/organization_shareholders/shareholder" var="shareholder">
			    <c:choose>
					<c:when test="${index<10}">
						<c:set value="0" var="flag" scope="page" />
					</c:when>
					<c:otherwise>
						<c:set value="" var="flag" scope="page" />
					</c:otherwise>
				</c:choose>
				<tr>
					<td >
						<span style='display:none' name="organizations/shareholders/shareholder[${flag}${index}]@sequence_no">${index+1}</span>
						<span name="organizations/shareholders/shareholder[${flag}${index}]/cname">
						     <x:out select="$shareholder/cname" />
						</span>
					</td>
					<td align="center">
						<span name="organizations/shareholders/shareholder[${flag}${index}]/invest_amount">
						     <x:out select="$shareholder/invest_amount" />
						</span>
					</td>
					<td align="center">
						<span name="organizations/shareholders/shareholder[${flag}${index}]/invest_type_name">
						     <x:out select="$shareholder/invest_type_name" />
						</span>
					</td>
					<td align="center">
						<span name="organizations/shareholders/shareholder[${flag}${index}]/invest_percent">
						     <x:out select="$shareholder/invest_percent" />
						</span>
					</td>
				</tr>
				<c:set value="${index+1}" var="index" scope="page" />
			</x:forEach>
			</tbody>
	</table>
<br>
<div class="t_bar">
	机构拥有知识产权状况: （单位：件）
</div>
<table class="table01" width="100%" border="0" cellpadding="0" id="orgInfo" cellspacing="1">
	<tr>
		<th rowspan="2">专利申请总数</th>
		<th colspan="3">其中</th>
		<th rowspan="2">专利授权总数</th>
		<th colspan="3">其中</th>
		<th rowspan="2">软件著作权</th>
		<th rowspan="2">（IC）布图设计专有权</th>
	</tr>
	<tr>
	    <th>发明</th>
	    <th>实用新型</th>
	    <th>外观设计</th>
		<th>发明</th>
	    <th>实用新型</th>
	    <th>外观设计</th>
	</tr>
	<tbody id="tab">
	    <tr>
	        <td align="center">
	            <input type="hidden"
			       name="knowledges/knowledge[0]@sequence_no" value="1">
	            <span name="knowledges/knowledge[0]/kr_request">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request" />
	            </span>&nbsp;
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_request_invent">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request_invent" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_request_new">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request_new" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_request_outward">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_request_outward" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth_invent">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth_invent" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth_new">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth_new" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_auth_outward">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_auth_outward" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_soft">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_soft" />&nbsp;
	            </span>
	        </td>
	        <td align="center">
	            <span name="knowledges/knowledge[0]/kr_ic">
	                 <x:out select="$xmlData/data/organization_knowledges/knowledge[@sequence_no='1']/kr_ic" />&nbsp;
	            </span>
	        </td>
	    </tr>
	</tbody>
</table>


<script type="text/javascript">
$(function(){
	$("#orgInfo tr:even").addClass("li_1");
    $("#orgInfo tr:odd").addClass("li_2");
    $("#orgInfo2 tr:even").addClass("li_1");
    $("#orgInfo2 tr:odd").addClass("li_2");
    $("#orgInfo3 tr:even").addClass("li_1");
    $("#orgInfo3 tr:odd").addClass("li_2");
    $("#contactInfo tr:even").addClass("li_1");
    $("#contactInfo tr:odd").addClass("li_2");
    $("#rateInfo tr:even").addClass("li_1");
    $("#rateInfo tr:odd").addClass("li_2");
    
	
    var office_product = $("#office_product").val();
	if(office_product=='' || office_product=='由系统统计')
		office_product = 0;
	var office_develope = $("#office_develope").val();
	if(office_develope=='' || office_develope=='由系统统计')
		office_develope = 0;	
	var org_office = parseInt(office_product) + parseInt(office_develope);
    
    $("#org_office").html(org_office);
});
$(document).ready (function() {
	repayClean('loan_ceiling','repay','colorRed');
	
});
function repayClean(obj,string1,string2){
	var value=$("#"+obj).val();
	
	if(value==0){
		$("#"+string1+"_value").removeClass("required");
		$("#"+string1).attr("disabled",true);
		$("#"+string2).hide();
		$("#"+string1).val("");
		$("#"+string1+"_value").val("");
		$("#"+string1+"_name").val("");
	}
	else
		{
		$("#"+string1+"_value").addClass("required");
		$("#"+string1).attr("disabled",false);
		$("#"+string2).show();
		}
	
}
/**
$(document).ready (function() {
	 spit1();
		
});
function  spit1(){
	 var tmp = $("span[name*='chk_characteristic_name']:eq(0)").text();
	 var arr = new Array();
	 var str = tmp.replace(' ','').split("，");
	 for(var i=0;i<str.length;i++){
		 str[i]=$.trim(str[i]);
		 if(str[i]=="国家高新技术企业" || str[i]=="深圳市高新技术企业" ||str[i]=="其他科技型企业" || str[i]=="高校、科研机构" || str[i]=="其他"){
			 arr.push(str[i]);
			
		 }
	 }
	 
	 
	 $("span[name*='chk_characteristic_name']:eq(0)").text(arr.join(","));
	 
	 
}
*/
</script>
